@extends('akl.Admin.Base-index')
@section('content')
<script>
	$('#left-bar .nav>li:nth-child(4)>.menu').addClass('on');
</script>
<div class="main-menu fadeInLeft">
	<div class="title">
		<i class="fa fa-file-text-o"></i> 图片列表
	</div>
	<ul class="act-list">
		<li>
			<a href="/Admin/Imgs/add"><i class="fa fa-plus-square-o"></i>添加图片</a>
		</li>
	</ul>
</div>

<div class="main-wrap fadeInRight">
	<table class="tablePanel2" >
		<tr>
			<th>id</th>
			<th>图片</th>
			<th>类别</th>
	        <th>操作</th>
		</tr>
		@foreach($brands as $sort)
			<tr>
				<td>{{$sort->id}}</td>
				<td>{{$sort->name}}</td>
				<td> <img src={{ $sort->logo}} width=30 /> </td>
				<td><a class="act-btn" href="/Admin/Imgs/destroy/id/{{$sort->id}}" onclick="return confirm('确实要删除吗？')">删除</a></td>
			</tr>
		@endforeach

	</table>
	<div class="pagenav">
		{{ $brands->links() }}
	</div>
</div>

@endsection